package com.iran.protoType.testCase;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.SimpleFormatter;

public class CaseHasDate extends Case {
    private Date dateTime;

    public CaseHasDate(Case ss) throws ParseException {
        super.setCaseName(ss.getCaseName());
        super.setCaseNum(ss.getCaseNum());
        super.setTime(ss.getTime());
        SimpleDateFormat fmt = new SimpleDateFormat("yyyyMMdd");
        this.dateTime = fmt.parse(ss.getTime());

    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }
}
